package com.inossem.allotin.api;

import com.inossem.allotin.bean.login.LogInBean;
import com.inossem.allotin.bean.login.LogInRequestBean;
import com.inossem.allotin.constant.UrlConstant;
import com.inossem.wms.vo.BaseBean;
import com.inossem.wms.vo.BaseObject;
import com.inossem.wms.vo.auth.DicStockLocationAndWhTreeVo;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;

/**
 * 登录
 *
 * @author 詹建宇
 * @time on 2019/1/2 16:39
 * @email jianyu.zhan@inossem.com
 */
public interface LogInApiService {

    @POST(UrlConstant.URL_LOGIN)
    Call<BaseObject<LogInBean>> login(@Body LogInRequestBean bean);

    @GET(UrlConstant.URL_LOCATION_AND_WH)
    Call<BaseObject<DicStockLocationAndWhTreeVo>> getBaseData();

}
